package com.czd.support.service;

import org.springframework.stereotype.Service;

import com.czd.base.model.Paginate;
import com.czd.base.service.BaseService;
import com.czd.support.model.Talk;

@Service
public class TalkService extends BaseService<Talk> {

	public Paginate queryForPage(Talk talk) {

		return this.queryForPaginate(sqlId("queryForPage"), talk);
	}

	public Talk find(int id) {

		return this.selectOne("find", id);
	}

	public Talk findById(int id) {

		return this.selectOne("findById", id);
	}

	/**
	 * 删除talkbiao
	 */
	public void deleteById(int id) {
		this.delete("deleteById", id);
	}
}
